
<%@ page import="fleet_management.Auction" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'auction.label', default: 'Auction')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#list-auction" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="list-auction" class="content scaffold-list" role="main">
			<h1 style="margin-left: 215px;"><g:message code="default.list.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<div id="tableWrapper1" style="margin-left: 215px;">
			<table>
				<thead>
					<tr>
					
						<g:sortableColumn property="vehicleNumber" title="${message(code: 'auction.vehicleNumber.label', default: 'VehicleNumber')}" />
														
						
						
						<g:sortableColumn property="auctionType" title="${message(code: 'auction.partnerName.label', default: 'AuctionType')}" />
						
						<g:sortableColumn property="sellingCost" title="${message(code: 'auction.sellingCost.label', default: 'SellingCost')}" />
					
						<g:sortableColumn property="soldCompanyName" title="${message(code: 'auction.soldCompanyName.label', default: 'SoldCompanyName')}" />
					
						<g:sortableColumn property="soldCompanyAddress" title="${message(code: 'auction.soldCompanyAddress.label', default: 'SoldCompanyAddress')}" />
					
						<g:sortableColumn property="partnerName" title="${message(code: 'auction.partnerName.label', default: 'PartnerName')}" />
						
						<g:sortableColumn property="partnerAddress" title="${message(code: 'auction.partnerName.label', default: 'PartnerAddress')}" />
						
						<g:sortableColumn property="purposeOfDonation" title="${message(code: 'auction.partnerName.label', default: 'PurposeOfDonation')}" />
						
						<g:sortableColumn property="adminRole" title="${message(code: 'auction.adminRole.label', default: 'Region')}" />
						
						
						
						
					
					</tr>
				</thead>
				<tbody>
				<g:each in="${auctionInstanceList}" status="i" var="auctionInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
					
						<td><g:link action="show" id="${auctionInstance.id}">${fieldValue(bean: auctionInstance, field: "vehicleNumber")}</g:link></td>
					
						
						
						<td>${fieldValue(bean: auctionInstance, field: "auctionType")}</td>
						
						<td>${fieldValue(bean: auctionInstance, field: "sellingCost")}</td>
					
						<td>${fieldValue(bean: auctionInstance, field: "soldCompanyName")}</td>
					
						<td>${fieldValue(bean: auctionInstance, field: "soldCompanyAddress")}</td>
					
						<td>${fieldValue(bean: auctionInstance, field: "partnerName")}</td>
						
						<td>${fieldValue(bean: auctionInstance, field: "partnerAddress")}</td>
						
						<td>${fieldValue(bean: auctionInstance, field: "purposeOfDonation")}</td>
						
						<td>${fieldValue(bean: auctionInstance, field: "adminRole")}</td>
						
						
						
					
					</tr>
				</g:each>
				</tbody>
			</table>
			</div>
			<div class="pagination">
				<g:paginate total="${auctionInstanceTotal}" />
			</div>
		</div>
	</body>
</html>
